<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: jetson-utils/gstDecoder.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('gstDecoder_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">gstDecoder.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="gstDecoder_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * copy of this software and associated documentation files (the &quot;Software&quot;),</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * to deal in the Software without restriction, including without limitation</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * the rights to use, copy, modify, merge, publish, distribute, sublicense,</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * and/or sell copies of the Software, and to permit persons to whom the</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Software is furnished to do so, subject to the following conditions:</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * The above copyright notice and this permission notice shall be included in</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * all copies or substantial portions of the Software.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * DEALINGS IN THE SOFTWARE.</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef __GSTREAMER_DECODER_H__</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define __GSTREAMER_DECODER_H__</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="gstUtility_8h.html">gstUtility.h</a>&quot;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="gstBufferManager_8h.html">gstBufferManager.h</a>&quot;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="videoSource_8h.html">videoSource.h</a>&quot;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">// Forward declarations</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">class </span><a class="code" href="group__network.html#classWebRTCServer">WebRTCServer</a>;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">struct </span><a class="code" href="group__network.html#structWebRTCPeer">WebRTCPeer</a>;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">struct </span>_GstAppSink;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="group__codec.html">   52</a></span>&#160;<span class="keyword">class </span><a class="code" href="group__codec.html#classgstDecoder">gstDecoder</a> : <span class="keyword">public</span> <a class="code" href="group__video.html#classvideoSource">videoSource</a></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;{</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keyword">static</span> <a class="code" href="group__codec.html#classgstDecoder">gstDecoder</a>* <a class="code" href="group__codec.html#aa21be1ad8be0516974b4507cb49d4fbe">Create</a>( <span class="keyword">const</span> <a class="code" href="group__video.html#structvideoOptions">videoOptions</a>&amp; options );</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <span class="keyword">static</span> <a class="code" href="group__codec.html#classgstDecoder">gstDecoder</a>* <a class="code" href="group__codec.html#aa21be1ad8be0516974b4507cb49d4fbe">Create</a>( <span class="keyword">const</span> <a class="code" href="group__video.html#structURI">URI</a>&amp; resource, <a class="code" href="group__video.html#a99a95e988dcf46c0e9177abc7217cf8f">videoOptions::Codec</a> codec );</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        </div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <a class="code" href="group__codec.html#a0e13e2625f959c1e612cb90e3d5720d0">~gstDecoder</a>();</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="group__codec.html#ab1815fabffb63e4b84260a3f772afb7a">Capture</a>( <span class="keywordtype">void</span>** image, <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format, uint64_t timeout=<a class="code" href="group__video.html#a8bc5b1b9a8bc15292890fef1028adbee">DEFAULT_TIMEOUT</a>, <span class="keywordtype">int</span>* status=NULL );</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="group__codec.html#aab54dc71e937ed3e8ecd6fd129e16179">Open</a>();</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__codec.html#a88ba5cb4519d8d50aaa3e28c9bf2c8f1">Close</a>();</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="group__codec.html#a4ce4a72e8d0303f15adee8d0bff2f9d2">   95</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__codec.html#a4ce4a72e8d0303f15adee8d0bff2f9d2">IsEOS</a>()<span class="keyword"> const                               </span>{ <span class="keywordflow">return</span> <a class="code" href="group__codec.html#a2a9c9f5486d33efe5d8435dfb1776653">mEOS</a>; }</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="group__codec.html#ad9c4a4b64c50f8ae8712e3061e8a18df">  100</a></span>&#160;        <span class="keyword">virtual</span> <span class="keyword">inline</span> uint32_t <a class="code" href="group__codec.html#ad9c4a4b64c50f8ae8712e3061e8a18df">GetType</a>()<span class="keyword"> const         </span>{ <span class="keywordflow">return</span> <a class="code" href="group__codec.html#a4ae2851033f43b2e70cb8f13f4331ac3">Type</a>; }</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="group__codec.html#a4ae2851033f43b2e70cb8f13f4331ac3">  105</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">const</span> uint32_t <a class="code" href="group__codec.html#a4ae2851033f43b2e70cb8f13f4331ac3">Type</a> = (1 &lt;&lt; 1);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="group__codec.html#af3f60fa3ebece14ba29f4a869304e4b4">  118</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__codec.html#af3f60fa3ebece14ba29f4a869304e4b4">SupportedExtensions</a>[];</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="group__codec.html#af6e1fedc2e266c7a47442f206fc02a97">IsSupportedExtension</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* ext );</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        <a class="code" href="group__codec.html#a50f9a48e5530a3f8e145d4607ba9126d">gstDecoder</a>( <span class="keyword">const</span> <a class="code" href="group__video.html#structvideoOptions">videoOptions</a>&amp; options );</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        </div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="group__codec.html#a3c71328dbf87e491256076f2f5dd2d05">checkMsgBus</a>();</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="group__codec.html#a93a0f91ee9efba125384da10160b6d57">checkBuffer</a>();</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="group__codec.html#a34aa2ba174916bf11f6a6754035be07e">buildLaunchStr</a>();</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="group__codec.html#a5c5f6f83bfac05602b825e1a94da5dc6">discover</a>();</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;        </div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="group__codec.html#a0f0e18a067608c327752682ec123ad16">init</a>();</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="group__codec.html#a1998b3f92ddf16a01c6bce6514e4830d">initPipeline</a>();</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="group__codec.html#a8555d993d58f8d8534807b4082a54bbc">destroyPipeline</a>();</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        </div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="group__codec.html#adbb1b42aab779fe3f5407991d914f5b9">  139</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__codec.html#adbb1b42aab779fe3f5407991d914f5b9">isLooping</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<a class="code" href="group__video.html#aa3c05686659fae747ff8709be2c9b445">mOptions</a>.<a class="code" href="group__video.html#aa8e394eb896dd92fd39c0946c10dd1ea">loop</a> &lt; 0) || ((<a class="code" href="group__video.html#aa3c05686659fae747ff8709be2c9b445">mOptions</a>.<a class="code" href="group__video.html#aa8e394eb896dd92fd39c0946c10dd1ea">loop</a> &gt; 0) &amp;&amp; (<a class="code" href="group__codec.html#a7bcc5a3d833e98ea5cb8e92a2f798dd5">mLoopCount</a> &lt; <a class="code" href="group__video.html#aa3c05686659fae747ff8709be2c9b445">mOptions</a>.<a class="code" href="group__video.html#aa8e394eb896dd92fd39c0946c10dd1ea">loop</a>)); }</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160; </div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        <span class="comment">// appsink callbacks</span></div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__codec.html#a300bc3d37026eba2b16bc61c41882e18">onEOS</a>(_GstAppSink* sink, <span class="keywordtype">void</span>* user_data);</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        </div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        <span class="keyword">static</span> GstFlowReturn <a class="code" href="group__codec.html#a646597459b872ae708921cd9acb96668">onPreroll</a>(_GstAppSink* sink, <span class="keywordtype">void</span>* user_data);</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        <span class="keyword">static</span> GstFlowReturn <a class="code" href="group__codec.html#a475b8143fe06170402fe6d4a7d686cc9">onBuffer</a>(_GstAppSink* sink, <span class="keywordtype">void</span>* user_data);</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        <span class="comment">// WebRTC callbacks</span></div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="group__codec.html#a78a929df46b6d6e95603a765f040bdd7">onWebsocketMessage</a>( <a class="code" href="group__network.html#structWebRTCPeer">WebRTCPeer</a>* peer, <span class="keyword">const</span> <span class="keywordtype">char</span>* message, <span class="keywordtype">size_t</span> message_size, <span class="keywordtype">void</span>* user_data );</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="group__codec.html#a3edb5e66d47896771bce50c2fe911649">  150</a></span>&#160;        GstBus*      <a class="code" href="group__codec.html#a3edb5e66d47896771bce50c2fe911649">mBus</a>;</div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="group__codec.html#a2b4bb0ddcf06bcec486de9d0932ea3c4">  151</a></span>&#160;        GstElement*  <a class="code" href="group__codec.html#a2b4bb0ddcf06bcec486de9d0932ea3c4">mPipeline</a>;</div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="group__codec.html#a373c13d58980e4b64b728d20d933077c">  152</a></span>&#160;        _GstAppSink* <a class="code" href="group__codec.html#a373c13d58980e4b64b728d20d933077c">mAppSink</a>;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        </div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="group__codec.html#a8aac851c5dfed057820cd55d8f3eced6">  154</a></span>&#160;        <a class="code" href="group__threads.html#classEvent">Event</a>     <a class="code" href="group__codec.html#a8aac851c5dfed057820cd55d8f3eced6">mWaitEvent</a>;</div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="group__codec.html#a1c556168206ada4fd590786368a70c1b">  155</a></span>&#160;        std::string <a class="code" href="group__codec.html#a1c556168206ada4fd590786368a70c1b">mLaunchStr</a>;</div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="group__codec.html#a42f40dede8b2160e0c46abf817672ddc">  156</a></span>&#160;        <span class="keywordtype">bool</span>        <a class="code" href="group__codec.html#a42f40dede8b2160e0c46abf817672ddc">mCustomSize</a>;</div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="group__codec.html#ab167fae471c8406c627683ef7cd040ab">  157</a></span>&#160;        <span class="keywordtype">bool</span>              <a class="code" href="group__codec.html#ab167fae471c8406c627683ef7cd040ab">mCustomRate</a>;</div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="group__codec.html#a2a9c9f5486d33efe5d8435dfb1776653">  158</a></span>&#160;        <span class="keywordtype">bool</span>        <a class="code" href="group__codec.html#a2a9c9f5486d33efe5d8435dfb1776653">mEOS</a>;</div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="group__codec.html#a7bcc5a3d833e98ea5cb8e92a2f798dd5">  159</a></span>&#160;        <span class="keywordtype">size_t</span>    <a class="code" href="group__codec.html#a7bcc5a3d833e98ea5cb8e92a2f798dd5">mLoopCount</a>;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                </div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="group__codec.html#ac4876e9abba83342693472fd75b10b5f">  161</a></span>&#160;        <a class="code" href="group__codec.html#classgstBufferManager">gstBufferManager</a>* <a class="code" href="group__codec.html#ac4876e9abba83342693472fd75b10b5f">mBufferManager</a>;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        </div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="group__codec.html#a78dfbcab1e923fa292cbb58a251b9b4a">  163</a></span>&#160;        <a class="code" href="group__network.html#classWebRTCServer">WebRTCServer</a>* <a class="code" href="group__codec.html#a78dfbcab1e923fa292cbb58a251b9b4a">mWebRTCServer</a>;</div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="group__codec.html#ac99f94884360b3541fa5aff5153153ab">  164</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="group__codec.html#ac99f94884360b3541fa5aff5153153ab">mWebRTCConnected</a>;</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;};</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;  </div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="avideoSource_8h_html"><div class="ttname"><a href="videoSource_8h.html">videoSource.h</a></div></div>
<div class="ttc" id="agroup__codec_html_a373c13d58980e4b64b728d20d933077c"><div class="ttname"><a href="group__codec.html#a373c13d58980e4b64b728d20d933077c">gstDecoder::mAppSink</a></div><div class="ttdeci">_GstAppSink * mAppSink</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:152</div></div>
<div class="ttc" id="agroup__codec_html_ab1815fabffb63e4b84260a3f772afb7a"><div class="ttname"><a href="group__codec.html#ab1815fabffb63e4b84260a3f772afb7a">gstDecoder::Capture</a></div><div class="ttdeci">virtual bool Capture(void **image, imageFormat format, uint64_t timeout=DEFAULT_TIMEOUT, int *status=NULL)</div><div class="ttdoc">Capture the next decoded frame.</div></div>
<div class="ttc" id="agroup__threads_html_classEvent"><div class="ttname"><a href="group__threads.html#classEvent">Event</a></div><div class="ttdoc">Event object for signalling other threads.</div><div class="ttdef"><b>Definition:</b> Event.h:33</div></div>
<div class="ttc" id="agroup__codec_html_classgstDecoder"><div class="ttname"><a href="group__codec.html#classgstDecoder">gstDecoder</a></div><div class="ttdoc">Hardware-accelerated video decoder for Jetson using GStreamer.</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:52</div></div>
<div class="ttc" id="agroup__codec_html_a475b8143fe06170402fe6d4a7d686cc9"><div class="ttname"><a href="group__codec.html#a475b8143fe06170402fe6d4a7d686cc9">gstDecoder::onBuffer</a></div><div class="ttdeci">static GstFlowReturn onBuffer(_GstAppSink *sink, void *user_data)</div></div>
<div class="ttc" id="agroup__codec_html_a2a9c9f5486d33efe5d8435dfb1776653"><div class="ttname"><a href="group__codec.html#a2a9c9f5486d33efe5d8435dfb1776653">gstDecoder::mEOS</a></div><div class="ttdeci">bool mEOS</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:158</div></div>
<div class="ttc" id="agroup__codec_html_ad9c4a4b64c50f8ae8712e3061e8a18df"><div class="ttname"><a href="group__codec.html#ad9c4a4b64c50f8ae8712e3061e8a18df">gstDecoder::GetType</a></div><div class="ttdeci">virtual uint32_t GetType() const</div><div class="ttdoc">Return the interface type (gstDecoder::Type)</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:100</div></div>
<div class="ttc" id="agroup__codec_html_a42f40dede8b2160e0c46abf817672ddc"><div class="ttname"><a href="group__codec.html#a42f40dede8b2160e0c46abf817672ddc">gstDecoder::mCustomSize</a></div><div class="ttdeci">bool mCustomSize</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:156</div></div>
<div class="ttc" id="agroup__codec_html_a93a0f91ee9efba125384da10160b6d57"><div class="ttname"><a href="group__codec.html#a93a0f91ee9efba125384da10160b6d57">gstDecoder::checkBuffer</a></div><div class="ttdeci">void checkBuffer()</div></div>
<div class="ttc" id="agroup__network_html_classWebRTCServer"><div class="ttname"><a href="group__network.html#classWebRTCServer">WebRTCServer</a></div><div class="ttdoc">WebRTC signalling server for establishing and negotiating connections with peers for bi-directional m...</div><div class="ttdef"><b>Definition:</b> WebRTCServer.h:116</div></div>
<div class="ttc" id="agroup__codec_html_a88ba5cb4519d8d50aaa3e28c9bf2c8f1"><div class="ttname"><a href="group__codec.html#a88ba5cb4519d8d50aaa3e28c9bf2c8f1">gstDecoder::Close</a></div><div class="ttdeci">virtual void Close()</div><div class="ttdoc">Close the stream.</div></div>
<div class="ttc" id="agroup__codec_html_classgstBufferManager"><div class="ttname"><a href="group__codec.html#classgstBufferManager">gstBufferManager</a></div><div class="ttdoc">gstBufferManager recieves GStreamer buffers from appsink elements and unpacks/maps them into CUDA add...</div><div class="ttdef"><b>Definition:</b> gstBufferManager.h:61</div></div>
<div class="ttc" id="agroup__codec_html_a5c5f6f83bfac05602b825e1a94da5dc6"><div class="ttname"><a href="group__codec.html#a5c5f6f83bfac05602b825e1a94da5dc6">gstDecoder::discover</a></div><div class="ttdeci">bool discover()</div></div>
<div class="ttc" id="agroup__codec_html_aab54dc71e937ed3e8ecd6fd129e16179"><div class="ttname"><a href="group__codec.html#aab54dc71e937ed3e8ecd6fd129e16179">gstDecoder::Open</a></div><div class="ttdeci">virtual bool Open()</div><div class="ttdoc">Open the stream.</div></div>
<div class="ttc" id="agroup__codec_html_aa21be1ad8be0516974b4507cb49d4fbe"><div class="ttname"><a href="group__codec.html#aa21be1ad8be0516974b4507cb49d4fbe">gstDecoder::Create</a></div><div class="ttdeci">static gstDecoder * Create(const videoOptions &amp;options)</div><div class="ttdoc">Create a decoder from the provided video options.</div></div>
<div class="ttc" id="agroup__codec_html_a4ce4a72e8d0303f15adee8d0bff2f9d2"><div class="ttname"><a href="group__codec.html#a4ce4a72e8d0303f15adee8d0bff2f9d2">gstDecoder::IsEOS</a></div><div class="ttdeci">bool IsEOS() const</div><div class="ttdoc">Return true if End Of Stream (EOS) has been reached.</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:95</div></div>
<div class="ttc" id="agstBufferManager_8h_html"><div class="ttname"><a href="gstBufferManager_8h.html">gstBufferManager.h</a></div></div>
<div class="ttc" id="agroup__codec_html_a50f9a48e5530a3f8e145d4607ba9126d"><div class="ttname"><a href="group__codec.html#a50f9a48e5530a3f8e145d4607ba9126d">gstDecoder::gstDecoder</a></div><div class="ttdeci">gstDecoder(const videoOptions &amp;options)</div></div>
<div class="ttc" id="agroup__codec_html_af6e1fedc2e266c7a47442f206fc02a97"><div class="ttname"><a href="group__codec.html#af6e1fedc2e266c7a47442f206fc02a97">gstDecoder::IsSupportedExtension</a></div><div class="ttdeci">static bool IsSupportedExtension(const char *ext)</div><div class="ttdoc">Return true if the extension is in the list of SupportedExtensions.</div></div>
<div class="ttc" id="agroup__codec_html_a1998b3f92ddf16a01c6bce6514e4830d"><div class="ttname"><a href="group__codec.html#a1998b3f92ddf16a01c6bce6514e4830d">gstDecoder::initPipeline</a></div><div class="ttdeci">bool initPipeline()</div></div>
<div class="ttc" id="agstUtility_8h_html"><div class="ttname"><a href="gstUtility_8h.html">gstUtility.h</a></div></div>
<div class="ttc" id="agroup__codec_html_a1c556168206ada4fd590786368a70c1b"><div class="ttname"><a href="group__codec.html#a1c556168206ada4fd590786368a70c1b">gstDecoder::mLaunchStr</a></div><div class="ttdeci">std::string mLaunchStr</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:155</div></div>
<div class="ttc" id="agroup__codec_html_adbb1b42aab779fe3f5407991d914f5b9"><div class="ttname"><a href="group__codec.html#adbb1b42aab779fe3f5407991d914f5b9">gstDecoder::isLooping</a></div><div class="ttdeci">bool isLooping() const</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:139</div></div>
<div class="ttc" id="agroup__video_html_a99a95e988dcf46c0e9177abc7217cf8f"><div class="ttname"><a href="group__video.html#a99a95e988dcf46c0e9177abc7217cf8f">videoOptions::Codec</a></div><div class="ttdeci">Codec</div><div class="ttdoc">Video codecs.</div><div class="ttdef"><b>Definition:</b> videoOptions.h:198</div></div>
<div class="ttc" id="agroup__codec_html_af3f60fa3ebece14ba29f4a869304e4b4"><div class="ttname"><a href="group__codec.html#af3f60fa3ebece14ba29f4a869304e4b4">gstDecoder::SupportedExtensions</a></div><div class="ttdeci">static const char * SupportedExtensions[]</div><div class="ttdoc">String array of supported video file extensions, terminated with a NULL sentinel value.</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:118</div></div>
<div class="ttc" id="agroup__video_html_structURI"><div class="ttname"><a href="group__video.html#structURI">URI</a></div><div class="ttdoc">Resource URI of a video device, IP stream, or file/directory.</div><div class="ttdef"><b>Definition:</b> URI.h:101</div></div>
<div class="ttc" id="agroup__codec_html_ab167fae471c8406c627683ef7cd040ab"><div class="ttname"><a href="group__codec.html#ab167fae471c8406c627683ef7cd040ab">gstDecoder::mCustomRate</a></div><div class="ttdeci">bool mCustomRate</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:157</div></div>
<div class="ttc" id="agroup__codec_html_a8555d993d58f8d8534807b4082a54bbc"><div class="ttname"><a href="group__codec.html#a8555d993d58f8d8534807b4082a54bbc">gstDecoder::destroyPipeline</a></div><div class="ttdeci">void destroyPipeline()</div></div>
<div class="ttc" id="agroup__codec_html_a300bc3d37026eba2b16bc61c41882e18"><div class="ttname"><a href="group__codec.html#a300bc3d37026eba2b16bc61c41882e18">gstDecoder::onEOS</a></div><div class="ttdeci">static void onEOS(_GstAppSink *sink, void *user_data)</div></div>
<div class="ttc" id="agroup__codec_html_a646597459b872ae708921cd9acb96668"><div class="ttname"><a href="group__codec.html#a646597459b872ae708921cd9acb96668">gstDecoder::onPreroll</a></div><div class="ttdeci">static GstFlowReturn onPreroll(_GstAppSink *sink, void *user_data)</div></div>
<div class="ttc" id="agroup__video_html_aa8e394eb896dd92fd39c0946c10dd1ea"><div class="ttname"><a href="group__video.html#aa8e394eb896dd92fd39c0946c10dd1ea">videoOptions::loop</a></div><div class="ttdeci">int loop</div><div class="ttdoc">Control the number of loops for videoSource disk-based inputs (for example, the number of times that ...</div><div class="ttdef"><b>Definition:</b> videoOptions.h:119</div></div>
<div class="ttc" id="agroup__video_html_aa3c05686659fae747ff8709be2c9b445"><div class="ttname"><a href="group__video.html#aa3c05686659fae747ff8709be2c9b445">videoSource::mOptions</a></div><div class="ttdeci">videoOptions mOptions</div><div class="ttdef"><b>Definition:</b> videoSource.h:378</div></div>
<div class="ttc" id="agroup__codec_html_a78a929df46b6d6e95603a765f040bdd7"><div class="ttname"><a href="group__codec.html#a78a929df46b6d6e95603a765f040bdd7">gstDecoder::onWebsocketMessage</a></div><div class="ttdeci">static void onWebsocketMessage(WebRTCPeer *peer, const char *message, size_t message_size, void *user_data)</div></div>
<div class="ttc" id="agroup__codec_html_a2b4bb0ddcf06bcec486de9d0932ea3c4"><div class="ttname"><a href="group__codec.html#a2b4bb0ddcf06bcec486de9d0932ea3c4">gstDecoder::mPipeline</a></div><div class="ttdeci">GstElement * mPipeline</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:151</div></div>
<div class="ttc" id="agroup__codec_html_a0f0e18a067608c327752682ec123ad16"><div class="ttname"><a href="group__codec.html#a0f0e18a067608c327752682ec123ad16">gstDecoder::init</a></div><div class="ttdeci">bool init()</div></div>
<div class="ttc" id="agroup__codec_html_a7bcc5a3d833e98ea5cb8e92a2f798dd5"><div class="ttname"><a href="group__codec.html#a7bcc5a3d833e98ea5cb8e92a2f798dd5">gstDecoder::mLoopCount</a></div><div class="ttdeci">size_t mLoopCount</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:159</div></div>
<div class="ttc" id="agroup__codec_html_ac4876e9abba83342693472fd75b10b5f"><div class="ttname"><a href="group__codec.html#ac4876e9abba83342693472fd75b10b5f">gstDecoder::mBufferManager</a></div><div class="ttdeci">gstBufferManager * mBufferManager</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:161</div></div>
<div class="ttc" id="agroup__codec_html_ac99f94884360b3541fa5aff5153153ab"><div class="ttname"><a href="group__codec.html#ac99f94884360b3541fa5aff5153153ab">gstDecoder::mWebRTCConnected</a></div><div class="ttdeci">bool mWebRTCConnected</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:164</div></div>
<div class="ttc" id="agroup__video_html_a8bc5b1b9a8bc15292890fef1028adbee"><div class="ttname"><a href="group__video.html#a8bc5b1b9a8bc15292890fef1028adbee">videoSource::DEFAULT_TIMEOUT</a></div><div class="ttdeci">static const uint64_t DEFAULT_TIMEOUT</div><div class="ttdoc">The default Capture timeout (1000ms)</div><div class="ttdef"><b>Definition:</b> videoSource.h:371</div></div>
<div class="ttc" id="agroup__codec_html_a8aac851c5dfed057820cd55d8f3eced6"><div class="ttname"><a href="group__codec.html#a8aac851c5dfed057820cd55d8f3eced6">gstDecoder::mWaitEvent</a></div><div class="ttdeci">Event mWaitEvent</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:154</div></div>
<div class="ttc" id="agroup__codec_html_a3edb5e66d47896771bce50c2fe911649"><div class="ttname"><a href="group__codec.html#a3edb5e66d47896771bce50c2fe911649">gstDecoder::mBus</a></div><div class="ttdeci">GstBus * mBus</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:150</div></div>
<div class="ttc" id="agroup__codec_html_a78dfbcab1e923fa292cbb58a251b9b4a"><div class="ttname"><a href="group__codec.html#a78dfbcab1e923fa292cbb58a251b9b4a">gstDecoder::mWebRTCServer</a></div><div class="ttdeci">WebRTCServer * mWebRTCServer</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:163</div></div>
<div class="ttc" id="agroup__codec_html_a3c71328dbf87e491256076f2f5dd2d05"><div class="ttname"><a href="group__codec.html#a3c71328dbf87e491256076f2f5dd2d05">gstDecoder::checkMsgBus</a></div><div class="ttdeci">void checkMsgBus()</div></div>
<div class="ttc" id="agroup__video_html_structvideoOptions"><div class="ttname"><a href="group__video.html#structvideoOptions">videoOptions</a></div><div class="ttdoc">The videoOptions struct contains common settings that are used to configure and query videoSource and...</div><div class="ttdef"><b>Definition:</b> videoOptions.h:37</div></div>
<div class="ttc" id="agroup__network_html_structWebRTCPeer"><div class="ttname"><a href="group__network.html#structWebRTCPeer">WebRTCPeer</a></div><div class="ttdoc">Remote peer that has connected.</div><div class="ttdef"><b>Definition:</b> WebRTCServer.h:85</div></div>
<div class="ttc" id="agroup__codec_html_a0e13e2625f959c1e612cb90e3d5720d0"><div class="ttname"><a href="group__codec.html#a0e13e2625f959c1e612cb90e3d5720d0">gstDecoder::~gstDecoder</a></div><div class="ttdeci">~gstDecoder()</div><div class="ttdoc">Destructor.</div></div>
<div class="ttc" id="agroup__codec_html_a34aa2ba174916bf11f6a6754035be07e"><div class="ttname"><a href="group__codec.html#a34aa2ba174916bf11f6a6754035be07e">gstDecoder::buildLaunchStr</a></div><div class="ttdeci">bool buildLaunchStr()</div></div>
<div class="ttc" id="agroup__imageFormat_html_ga931c48e08f361637d093355d64583406"><div class="ttname"><a href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a></div><div class="ttdeci">imageFormat</div><div class="ttdoc">The imageFormat enum is used to identify the pixel format and colorspace of an image.</div><div class="ttdef"><b>Definition:</b> imageFormat.h:49</div></div>
<div class="ttc" id="agroup__codec_html_a4ae2851033f43b2e70cb8f13f4331ac3"><div class="ttname"><a href="group__codec.html#a4ae2851033f43b2e70cb8f13f4331ac3">gstDecoder::Type</a></div><div class="ttdeci">static const uint32_t Type</div><div class="ttdoc">Unique type identifier of gstDecoder class.</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:105</div></div>
<div class="ttc" id="agroup__video_html_classvideoSource"><div class="ttname"><a href="group__video.html#classvideoSource">videoSource</a></div><div class="ttdoc">The videoSource API is for capturing frames from video input devices such as MIPI CSI cameras,...</div><div class="ttdef"><b>Definition:</b> videoSource.h:118</div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_54a0acf6da04fe2ed9410b4c6369bc5d.html">jetson-utils</a></li><li class="navelem"><a class="el" href="gstDecoder_8h.html">gstDecoder.h</a></li>
    <li class="footer">Generated on Tue Mar 28 2023 14:27:58 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
